package com.glsc.ngateway.common.base.repo.mysql.gateway.other;

import com.glsc.ngateway.common.base.domain.mysql.gateway.other.TradeSeatRent;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface TradeSeatRentRepository extends JpaRepository<TradeSeatRent, Integer>, JpaSpecificationExecutor<TradeSeatRent> {
    TradeSeatRent findByTradeSeatRentId(Integer tradeSeatId);

    //    tradeSeatCode交易单元号+tradeSeatMarket市场为主键，从流水表生成此表
    TradeSeatRent findByTradeSeatCodeAndTradeSeatMarket(String tradeSeatCode, String tradeSeatMarket);


    TradeSeatRent findByTradeSeatCode(String tradeSeatCode);
}
